package com.cl.pojo;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class Department {
    private int departmentId;
    private String departmentname;
    private long departmentphon;
    private String describe;
    @DateTimeFormat(pattern="yyyy-MM-hh")
    private Date establish;

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public long getDepartmentphon() {
        return departmentphon;
    }

    public void setDepartmentphon(long departmentphon) {
        this.departmentphon = departmentphon;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getEstablish() {
        return establish;
    }

    public void setEstablish(Date establish) {
        this.establish = establish;
    }

    public Department() {
    }

    public Department(int departmentId, String departmentname, long departmentphon, String describe, Date establish) {
        this.departmentId = departmentId;
        this.departmentname = departmentname;
        this.departmentphon = departmentphon;
        this.describe = describe;
        this.establish = establish;
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentId=" + departmentId +
                ", departmentname='" + departmentname + '\'' +
                ", departmentphon=" + departmentphon +
                ", describe='" + describe + '\'' +
                ", establish=" + establish +
                '}';
    }
}
